


<script> 

$('#counter').html('<?php echo sizeof($this->commits) ?>');


</script>
 
 <?php ?>
  
  
  <table class="tree-browser" cellpadding="0" cellspacing="0">
        <thead>
        <tr class="header">
          <th></th>
          <th>revision</th>

          <th>author</th>
          <th>
            size
          </th>
        </tr>

        </thead>
        <tbody>


<?
 


// empty folder treatment 




foreach ($this->commits as $row) 
{
	?>
		
		 <tr class="alt">
		            <td class="icon" nowrap="nowrap"><input type="checkbox" id="<?php  echo  $row->revision ;  ?>" value="<?php echo $row->revision ?>">  </td>
		            <td class="content"> <a style="cursor:pointer"  class="js-slide-to js-rewrite-sha" ><?php echo $row->revision." - ".$row->message  ; ?> </a>
		            
		            <div class="commit-desc">
					<pre><?
					$clean_files=trim($row->files); 
					$files = explode("  ",$clean_files) ; 
					//print_r($files) ; 
					
					foreach ($files as $file)
					{
						echo $file."<br>" ; 
					} 
					?></pre>
					</div>
		            
		            </td>
		            <td class="age"> <time class="js-relative-date" ><? echo $row->author ?></time> </td>
		            <td class="message"><?php echo filesize($content[$i]["NAME"])?></td>
		 </tr>
			
		<?	
	}
	?> 
	
          
        </tbody>

      </table>
